package lab02.Test09;

/**
 * Created by 李晓容 on 2017/10/24.
 */
public class Student {
    //属性：“学号”、“班号”、“姓名”、“性别”、“年龄”
    String sno;
    String cno;
    String sname;
    String sex;
    String age;

    public String getSno(){return sno;}
    public String getCno(){return cno;}
    public String getSname(){return sname;}
    public String getSex(){return sex;}
    public String getAge(){return age;}

    public void setSno(String sno){this.sno=sno;}
    public void setCno(String cno){this.cno=cno;}
    public void setSname(String sname){this.sname=sname;}
    public void setSex(String sex){this.sex=sex;}
    public void setAge(String age){this.age=age;}

    //方法public String toString( )
    public String toString(){
        String sum="sno:"+sno+"cno:"+cno+"sname:"+sname+"sex:"+sex+"age:"+age;
        return sum;
    }

    public static void main(String[] args) {

    }
}
